This is my first try at making a simple brain teaser program using
Borland's Delphi programming system. The brain teaser itself comes from an old DOS basic program I had that was then translated to Delphi.
The task is to change a 3X3 array that contains blanks and stars, represented by asterisks '*', into a certain pattern given below:
* * *
* *
* * *
Note that all cells in the 3X3 array have stars except the center. You are only allowed to pick on a cell with a star. Once picked, the star disappears and the immediate neighbors change state, that is blanks turn into stars and stars turn into blanks. The basic changes are given below:
1) Clicking on a corner star changes state of the three cells surrounding the corner
2) Clicking on the center star changes four cells, the one above it,
below it, to the right and to the left
3) Clicking on a side star change the the two neighboring corner
cells.
I hope you enjoy the game as much as I enjoyed programming it.